<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.qiqianyi.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\company\validate;

use think\Validate;

class QaValidate extends Validate
{
    protected $rule = [
        'title' => 'require',
        'category_id' => 'require',
        'type_id' => 'require',
        'status_id' => 'require',
        'group_id' => 'require',
        'person_name' => 'require',
        'person_phone' => 'require',
        'description' => 'require',
    ];
    protected $message = [
        'title.require' => '标题不能为空',
        'category_id.require' => '类型不能为空',
        'type_id.require' => '类别不能为空',
        'status_id.require' => '状态不能为空',
        'group_id.require' => '群组不能为空',
        'person_name.require' => '姓名不能为空',
        'person_phone.require' => '电话不能为空',
        'description.require' => '描述不能为空',
    ];

}